package yogiro.to;

public class NoticeCommentTO {
	private int commentNo;
	private String commentContent;
	private String commentWritedate;
	private String memberId;
	private int noticeNo;
	
	public int getCommentNo() {
		return commentNo;
	}
	public void setCommentNo(int commentNo) {
		this.commentNo = commentNo;
	}
	public String getCommentContent() {
		return commentContent;
	}
	public void setCommentContent(String commentContent) {
		this.commentContent = commentContent;
	}
	public String getCommentWritedate() {
		return commentWritedate;
	}
	public void setCommentWritedate(String commentWritedate) {
		this.commentWritedate = commentWritedate;
	}
	public String getMemberId() {
		return memberId;
	}
	public void setMemberId(String memberId) {
		this.memberId = memberId;
	}
	public int getNoticeNo() {
		return noticeNo;
	}
	public void setNoticeNo(int noticeNo) {
		this.noticeNo = noticeNo;
	}
	@Override
	public String toString() {
		return "CommentTO [commentNo=" + commentNo + ", commentContent="
				+ commentContent + ", commentWritedate=" + commentWritedate
				+ ", memberId=" + memberId + ", noticeNo=" + noticeNo + "]";
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result
				+ ((commentContent == null) ? 0 : commentContent.hashCode());
		result = prime * result + commentNo;
		result = prime
				* result
				+ ((commentWritedate == null) ? 0 : commentWritedate.hashCode());
		result = prime * result
				+ ((memberId == null) ? 0 : memberId.hashCode());
		result = prime * result + noticeNo;
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		NoticeCommentTO other = (NoticeCommentTO) obj;
		if (commentContent == null) {
			if (other.commentContent != null)
				return false;
		} else if (!commentContent.equals(other.commentContent))
			return false;
		if (commentNo != other.commentNo)
			return false;
		if (commentWritedate == null) {
			if (other.commentWritedate != null)
				return false;
		} else if (!commentWritedate.equals(other.commentWritedate))
			return false;
		if (memberId == null) {
			if (other.memberId != null)
				return false;
		} else if (!memberId.equals(other.memberId))
			return false;
		if (noticeNo != other.noticeNo)
			return false;
		return true;
	}
	public NoticeCommentTO(int commentNo, String commentContent,
			String commentWritedate, String memberId, int noticeNo) {
		super();
		this.commentNo = commentNo;
		this.commentContent = commentContent;
		this.commentWritedate = commentWritedate;
		this.memberId = memberId;
		this.noticeNo = noticeNo;
	}
	public NoticeCommentTO() {
		super();
	}
	public NoticeCommentTO(String commentContent, String memberId, int noticeNo) {
		super();
		this.commentContent = commentContent;
		this.memberId = memberId;
		this.noticeNo = noticeNo;
	}

	
	
}